﻿@model IEnumerable<WeberTimeTracker.Models.Project>
@{
    ViewBag.Title = "Popup";
    //Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1>Are you working on the following?</h1>
	

    @foreach (var item in Model)
	{

				@Html.DisplayFor(modelItem => item.Project_Name)<br />
	
	}


<input id="1" type="button" value="Yes" onclick="javascript:window.close();" />

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
	<input type="hidden" name="done" value="false" onclick="javascript:window.close();" />
	<input type="submit" value="No" />

     <script type="text/javascript">
     
         @{ if ((bool)Session["pop"] == false) { <text>window.close();</text>} } 
         
        setTimeout(function () {
     		$.ajax({ url: "/Home/Popup/?done=false" }).done(function () { window.close(); });
     	}, 10000)
       
    </script>
    }





